package io.tcpdump.demo01.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Result implements Serializable {
  private int code;
  private Object data;
  
  public static Result ok(Object data) {
    return Result.builder().code(200).data(data).build();
  }
}